package rs;

import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;


public class Boss {
	static ProjectManager manager = new ProjectManager();
	static ModelSeller seller = new ModelSeller();
	
	@Option(name="-r", usage="this is usage for -r")
	static String a = "default value";
	
	@Option(name="-h", usage="this is usage for -r")
	static String b = "default value b";
	
	/**
	 * milk-product-line 程序入口.
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		new Boss().doMain(args);
		
		//manager.work();
		//new Thread(seller).start();
		// //seller.work();
	}
	
	public void doMain(String[] args) throws Exception{
		/*
		CmdLineParser parser = new CmdLineParser(this);
		try{
			parser.parseArgument(args);
		}catch(Exception e){
			parser.printUsage(System.err);
			return;
		}
		System.out.println(a + '\n' + b);
		*/
		manager.work();
		new Thread(seller).start();
		// //seller.work();
	}
	
	public static ProjectManager getProjectManager(){
		return manager;
	}
	
	public static ModelSeller getModelSeller(){
		return seller;
	}

}
